/* CSS变量系统 - 高吸引力版 */
:root {
  --primary-color: #0f172a;
  --secondary-color: #1e293b;
  --accent-color: #06b6d4;
  --highlight-color: #a855f7;
  --gradient-primary: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #0891b2 50%, #0e7490 100%);
  --gradient-highlight: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #f43f5e 100%);
  --gradient-dynamic: linear-gradient(45deg, #06b6d4, #a855f7, #ec4899, #06b6d4);
  --gradient-aurora: conic-gradient(from 180deg at 50% 50%, #06b6d4, #a855f7, #ec4899, #06b6d4);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

html, body{
  height: 100%;
  background: var(--gradient-primary);
  position: relative;
  overflow-x: hidden;
}

/* 动态背景装饰 */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: var(--gradient-aurora);
  animation: rotate 25s linear infinite;
  opacity: 0.05;
  z-index: -1;
  pointer-events: none;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.wrap{
  min-height: 100%;
  display: flex;
  position: relative;
  z-index: 1;
}

@media screen and (max-width: 768px) {
  .wrap {
    flex-direction: column;
  }
}

/* 侧边栏 - 高吸引力设计 */
.aside {
  width: 280px;
  background: var(--gradient-primary);
  padding-top: 40px;
  box-shadow: 
    4px 0 20px rgba(6, 182, 212, 0.15),
    inset -1px 0 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.aside::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: var(--gradient-accent);
  opacity: 0.6;
}

.aside::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg at 50% 50%,
    transparent 0deg,
    rgba(6, 182, 212, 0.02) 60deg,
    rgba(168, 85, 247, 0.02) 120deg,
    rgba(236, 72, 153, 0.02) 180deg,
    transparent 360deg
  );
  animation: rotate 40s linear infinite;
  pointer-events: none;
}

@media screen and (max-width: 768px) {
  .aside {
    width: 100%;
    padding-top: 20px;
    padding-bottom: 20px;
  }
}

.aside h2 {
  text-align: center;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  margin-bottom: 30px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: glow-pulse 3s ease-in-out infinite alternate;
  position: relative;
}

@keyframes glow-pulse {
  0% { filter: brightness(1); }
  100% { filter: brightness(1.3); }
}

/* 侧边栏导航 */
.nav{
  padding-left: 20px;
  padding-right: 20px;
}

.nav li {
  width: 100%;
  height: 70px;
  line-height: 70px;
  color: white;
  cursor: pointer;
  list-style: none;
  margin-bottom: 8px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-out-expo);
}

.nav li::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(6, 182, 212, 0.2) 50%, 
    transparent 100%);
  transition: left 0.6s ease;
}

.nav li:hover::before {
  left: 100%;
}

@media screen and (max-width: 768px) {
  .nav {
    display: flex;
    padding: 0 20px;
    justify-content: center;
    flex-wrap: wrap;
  }
  .nav li {
    width: auto;
    height: 50px;
    line-height: 50px;
    margin: 5px;
  }
}

.nav li a{
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  display: block;
  padding: 0 20px;
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav li a.active{
  color: #ffffff !important;
  background: var(--gradient-accent);
  border-radius: 12px;
  box-shadow: 
    0 8px 24px rgba(6, 182, 212, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: scale(1.02);
}

.nav li a:hover {
  color: #ffffff;
  background: rgba(6, 182, 212, 0.15);
  border-radius: 12px;
  transform: translateX(8px);
}

/* 内容区域 */
.main{
  height: 100%;
  flex: 1;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  position: relative;
}

@media screen and (max-width: 768px) {
  .main {
    width: 100%;
  }
}

/* 顶部导航 - 高吸引力设计 */
.top-nav{
  height: 80px;
  border-bottom: 1px solid rgba(6, 182, 212, 0.2);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding-right: 40px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}

.top-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: var(--gradient-dynamic);
  animation: flow-gradient 3s ease-in-out infinite;
}

@keyframes flow-gradient {
  0% { left: -100%; }
  100% { left: 100%; }
}

.nav-item span{
  cursor: pointer;
  padding: 12px 24px;
  border-radius: 12px;
  transition: all 0.4s var(--ease-out-back);
  font-weight: 600;
  color: #475569;
  position: relative;
  overflow: hidden;
}



.nav-item span:hover {
  background: var(--gradient-accent);
  color: #ffffff;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 8px 24px rgba(6, 182, 212, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* .nav-item span:last-of-type{
  margin-left: 20px;
} */

/* 卡片容器布局 */
.content{
  padding: 40px;
}

@media screen and (max-width: 768px) {
  .content {
    padding: 20px;
  }
}

/* 卡片 - 高吸引力设计 */
.card{
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 10px 20px rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.15);
  padding: 30px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  transition: all 0.5s var(--ease-out-back);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease-out-expo);
  border-radius: 20px 20px 0 0;
}

.card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg at 50% 50%,
    transparent 0deg,
    rgba(6, 182, 212, 0.02) 60deg,
    rgba(168, 85, 247, 0.02) 120deg,
    rgba(236, 72, 153, 0.02) 180deg,
    transparent 360deg
  );
  animation: rotate 50s linear infinite;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover::after {
  opacity: 1;
}

.card:hover {
  box-shadow: 
    0 32px 64px rgba(6, 182, 212, 0.2),
    0 16px 32px rgba(0, 0, 0, 0.15);
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(6, 182, 212, 0.3);
}

.card:nth-child(n + 2){
  margin-top: 30px;
}

.card .title{
  height: 60px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid rgba(6, 182, 212, 0.1);
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.card .title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 1px;
}

/* 表单部分 */
.form-check, .form-select{
  display: inline-block;
  margin-left: 10px;
}

.form-select{
  width: auto;
}

.form-check-input:checked {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

.form-check-input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.25rem rgba(6, 182, 212, 0.25);
}

.sel-btn {
  background: var(--gradient-accent);
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  color: white;
  font-weight: 600;
  transition: all 0.4s var(--ease-out-back);
  box-shadow: 
    0 8px 24px rgba(6, 182, 212, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.sel-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.3) 50%, 
    transparent 100%);
  transition: left 0.6s ease;
}

.sel-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 12px 32px rgba(6, 182, 212, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.sel-btn:hover::before {
  left: 100%;
}

.body form>div {
  margin-top: 20px;
}

/* 表格列表部分 */
.table img {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  object-fit: cover;
  transition: all 0.3s ease;
}

.table img:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.table {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.table thead th {
  background: var(--gradient-accent);
  color: white;
  font-weight: 600;
  border: none;
  padding: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 14px;
}

.table tbody tr {
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(6, 182, 212, 0.1);
}

.table tbody tr:hover {
  background: rgba(6, 182, 212, 0.05);
  transform: scale(1.01);
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.1);
}

.table tbody td {
  padding: 16px;
  vertical-align: middle;
}

.edit, .del {
  cursor: pointer;
  font-size: 18px;
  margin: 0 8px;
  transition: all 0.3s ease;
  padding: 8px;
  border-radius: 8px;
}

.edit {
  color: var(--accent-color);
}

.edit:hover {
  background: rgba(6, 182, 212, 0.1);
  transform: scale(1.2);
}

.del {
  color: #ef4444;
}

.del:hover {
  background: rgba(239, 68, 68, 0.1);
  transform: scale(1.2);
}

/* 分页样式 */
.pagination {
  margin-top: 20px;
  justify-content: center;
}

.page-link {
  border: none;
  background: rgba(255, 255, 255, 0.8);
  color: var(--accent-color);
  margin: 0 4px;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.page-link:hover {
  background: var(--gradient-accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.page-item.active .page-link {
  background: var(--gradient-accent);
  color: white;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.page-now {
  padding: 8px 16px;
  background: rgba(6, 182, 212, 0.1);
  border-radius: 8px;
  color: var(--accent-color);
  font-weight: 600;
  margin: 0 8px;
}
.table .bi{
  cursor: pointer;
  font-size: 18px;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.3s ease;
  margin: 0 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
}

.table .bi-pencil-square {
  color: #3a7bd5;
  background-color: rgba(58, 123, 213, 0.1);
}

.table .bi-pencil-square:hover {
  color: #ffffff;
  background-color: #3a7bd5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(58, 123, 213, 0.3);
}

.table .bi-trash {
  color: #dc3545;
  background-color: rgba(220, 53, 69, 0.1);
}

.table .bi-trash:hover {
  color: #ffffff;
  background-color: #dc3545;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.table .bi:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

@media screen and (max-width: 768px) {
  .table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  .table img {
    width: 60px;
    height: 60px;
  }
  .table .bi {
    font-size: 16px;
    min-width: 32px;
    min-height: 32px;
    padding: 6px;
  }
}

/* 分页 */
.page-now{
  line-height: 40px;
  padding: 0 20px;
}